import Vue from 'vue'
import Router from 'vue-router'
const  _import = require('./_import_'+process.env.NODE_ENV)


Vue.use(Router)
import  Layout from  '../views/layout/Layout'


export  const constantRouterMap=[
  {
    path:'/',
    component:Layout,
    redirect:'/dashboard',
    name:'Dashboard',
    hidden:true,
    children:[
      {
        path:'dashboard',
        component:_import('dashboard/index')
      }
    ]
  }
]
export default new Router({
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})
